#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START elinks
# depends: cross-pkg-config
# depends: expat
# depends: openssl1.1
# depends: zlib

reset_mtime elinks elinks/configure.ac
rm -rf build/elinks
mkdir -p build/elinks
cd build/elinks
../../elinks/configure \
	${CONFIGURE_ARGS} \
	--without-static \
	--without-brotli \
	--without-bzlib \
	--without-gnutls \
	--without-gpm \
	--without-gssapi \
	--without-guile \
	--without-idn \
	--without-lua \
	--without-python \
	--without-ruby \
	--without-spidermonkey \
	--without-perl \
	--without-tre \
	--with-curl \
	--with-expat \
	--with-openssl \
	--enable-256-color \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/elinks

# RECIPE END elinks
